package org.zdd.bookstore.model.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Author: Yeman
 * @Date: 2021-12-21-14:58
 * @Description:
 */
@Table(name = "cart")
public class Carts {

    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public Integer getBookNum() {
        return bookNum;
    }

    public void setBookNum(Integer bookNum) {
        this.bookNum = bookNum;
    }

    @Id
    @Column(name = "cart_id")
    private Integer cartId;

    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "book_id")
    private Integer bookId;

    @Column(name = "book_num")
    private Integer bookNum;

    @Column(name = "check_not")
    private Integer checkNot = 1;

    public Integer getCheckNot() {
        return checkNot;
    }

    public void setCheckNot(Integer checkNot) {
        this.checkNot = checkNot;
    }
}
